package com.heima.model.behavior.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.Date;

@Data
public class CollectionBehaviorDto {
    @JsonSerialize(using = ToStringSerializer.class)//把当前字段转换为字符串进行响应
    private Long entryId;//文章id
    private Short operation;//0收藏    1取消收藏
    private Date publishedTime;//发布时间
    private Short type;//0 文章  1 动态
}
